package com.itheima.demo;

import com.itheima.domain.User;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @param
 * @return
 */
public class Demo {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ac = new ClassPathXmlApplicationContext("spring1.xml");
        User user = ac.getBean(User.class);
        System.out.println("user = " + user);
    }
}
